﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.UserDomain
{
   public class UserRightGroup
    {
        #region Properties
        public int ID { get; set; }
        public string Group { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; }
        #endregion

        #region ForeignKeyProperties
        [ForeignKey("Parent")]
        public Nullable<int> ParentID { get; set; }
        #endregion

        #region NavigationalProperties
        public virtual UserRightGroup Parent { get; set; }
        public virtual ICollection<UserRightGroup> Children { get; set; }
        public virtual ICollection<UserRight> Rights { get; set; }
        #endregion
    }
}
